typedef enum
{
	RESET = 0,
	LED_OFF,
	LED_ON
} E_STATE_LED;



Blinking_LED()
{
	static E_STATE_LED le_statevar = RESET;
	
	switch(le_statevar)
	{
		case RESET:
		{
			LED_ctrl = LED_OFF;
			StartTimer(TIMER_LED);
			le_statevar = LED_OFF;
		}
		case LED_OFF:
		{
			if(IsExpiredTimer(TIMER_LED, TimeOnLED_Cfg) == TRUE)
			{
				LED_ctrl = LED_ON;
				StartTimer(TIMER_LED);
				le_statevar = LED_ON;
			}
			else
			{
				le_statevar = LED_OFF;
			}
		}
		break;
		case LED_ON:
		{
			if(IsExpiredTimer(TIMER_LED, TimeOnLED_Cfg) == TRUE)
			{
				LED_ctrl = LED_OFF;
				StartTimer(TIMER_LED);
				le_statevar = LED_OFF;
			}
			else
			{
				le_statevar = LED_ON;
			}
		}
		break;
		default:
		{
			le_statevar = RESET;
		}
		break;
	}
}


main()
{

//


debounce();
blinking_LED();

}


